package com.atguigu.gmall.feign.user;

import com.atguigu.gmall.model.user.UserAddress;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @author dyqstart
 * @create 2021-08-20-19:42
 * @since 1.0.0
 */
@RequestMapping("/api/user")
@FeignClient("service-user")
public interface UserFeignClient {

    @GetMapping("/address/list")
    List<UserAddress> getCurrentUserAddress();
}

